package com.cn.yz.springboot.rabbitmq.receiver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class ShortMessageReceiver implements BaseReceiver {

	Logger logger = LoggerFactory.getLogger(ShortMessageReceiver.class);
	
	@Override
	@RabbitListener(queues = "sms-spring-boot")
	public void receiveMessage(Message message) {
		// TODO Auto-generated method stub
		logger.info("发送短信====>"+message.toString());
	}

}
